package com.park.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.park.entity.Recharge;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface RechargeMapper extends BaseMapper<Recharge> {
    @Select("SELECT * FROM recharge where recharge_user_id like concat('%', #{id}, '%')")
    IPage<Recharge> getByRechargeId(Page<?> page,@Param("id") int id);
}
